package com.sparrow.source.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sparrow.source.common.dto.Result;
import com.sparrow.source.persistense.IasFace;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author bryceyung
 * @since 2024/11/20
 */
public interface IIasFaceService extends IService<IasFace> {

    /**
     * 添加人脸照片
     *
     * @param userId
     * @param files
     * @return
     */
    Result addFaceImage(Integer userId, MultipartFile[] files);

    /**
     * 更新人脸信息
     *
     * @param faceId
     * @param files
     * @return
     */
    Result updateFaceImage(Integer faceId,MultipartFile[] files);

    /**
     * 根据userId查询数据
     *
     * @param userId
     * @return
     */
    List<IasFace> queryByUserId(Integer userId);

    Boolean delete(Integer faceId);

}
